package com.woniu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.entity.UrlPermission;
import com.woniu.service.vo.PermissionShow;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 菜单和接口权限定义 服务类
 * </p>
 *
 * @author D
 * @since 2023-03-27 08:24:57
 */
public interface UrlPermissionService extends IService<UrlPermission> {

    List<PermissionShow> selectListById(Long managerId);

    Set<Long> getPermissionIds(Long roleId);

    void addAuthority(Long roleId, Long[] permissionIds);

    Page<UrlPermission> pageList(Integer currentPage, Integer pageSize, String keyword);

    void deleteById(Long permissionId);

    List<PermissionShow> selectList();

}
